package mybatis1.com.config.model;

import java.util.ArrayList;
import java.util.List;

public class Student {
    private long stuno,gradeid;
   private String s_name,s_sex,fromcity,telephone,enterdate;


   private List<ExamResult> exm=new ArrayList<>();

    public Student() {
    }

    public Student(long stuno, long gradeid, String s_name, String s_sex, String fromcity) {
        this.stuno = stuno;
        this.gradeid = gradeid;
        this.s_name = s_name;
        this.s_sex = s_sex;
        this.fromcity = fromcity;
    }

    public Student(long stuno, long gradeid, String s_name, String s_sex, String fromcity, String telephone, String enterdate) {
        this.stuno = stuno;
        this.gradeid = gradeid;
        this.s_name = s_name;
        this.s_sex = s_sex;
        this.fromcity = fromcity;
        this.telephone = telephone;
        this.enterdate = enterdate;

    }

    public long getStuno() {
        return stuno;
    }

    public void setStuno(long stuno) {
        this.stuno = stuno;
    }

    public long getGradeid() {
        return gradeid;
    }

    public void setGradeid(long gradeid) {
        this.gradeid = gradeid;
    }

    public String getS_name() {
        return s_name;
    }

    public void setS_name(String s_name) {
        this.s_name = s_name;
    }

    public String getS_sex() {
        return s_sex;
    }

    public void setS_sex(String s_sex) {
        this.s_sex = s_sex;
    }

    public String getFromcity() {
        return fromcity;
    }

    public void setFromcity(String fromcity) {
        this.fromcity = fromcity;
    }

    public List<ExamResult> getExm() {
        return exm;
    }

    public void setExm(List<ExamResult> exm) {
        this.exm = exm;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEnterdate() {
        return enterdate;
    }

    public void setEnterdate(String enterdate) {
        this.enterdate = enterdate;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuno=" + stuno +
                ", gradeid=" + gradeid +
                ", s_name='" + s_name + '\'' +
                ", s_sex='" + s_sex + '\'' +
                ", fromcity='" + fromcity + '\'' +
                ", telephone='" + telephone + '\'' +
                ", enterdate='" + enterdate + '\'' +
                ", exm=" + exm +
                '}';
    }
}
